package com.xiaowei.gym.gymjsp.ware.entity;

import java.io.Serializable;
import java.util.List;

public class GymMenuEntity implements Serializable {

    private Integer id;
    private Integer parentId;
    private String name;
    private String url;
    private List<GymMenuEntity> children;
    public GymMenuEntity() {
    }

    public GymMenuEntity(int id, int parentId, String name, String url) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.url = url;
    }

    // Getters and Setters

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<GymMenuEntity> getChildren() {
        return children;
    }

    public void setChildren(List<GymMenuEntity> children) {
        this.children = children;
    }


    // toString method

    @Override
    public String toString() {
        return "GymMenu{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
